package com.art.sunflower.mapper;


import com.art.sunflower.pojo.SchoolIntroduce;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;

public interface IntroduceMapper {
    @Select("select * from school_introduce where id = #{id}")
    SchoolIntroduce selectById(int id);

    @Update("update school_introduce set profile=#{profile},history=#{history},concept=#{concept},introduce=#{introduce},url=#{url} where id=#{id}")
    int updateIntroduceById(SchoolIntroduce schoolIntroduce);

    @Select("select * from school_introduce")
    List<Map<String, Object>> findAllIntroduce();
}
